{% load i18n %}
{% if can_report %}
	<div class="moderaptor">
	{% if not report %}
		<div class="moderaptor_button"><img src="{{ MEDIA_URL }}img/moderaptor_report.png" class="moderaptor_toggle" alt="{% trans 'report it' %}" title="{% trans 'report it' %}" /></div>
		<form class="moderaptor_report" action="/moderaptor/report/{{ label }}/{{ name }}/{{ id }}/" method="post" id="report_{{ name }}_{{ id }}">
		<ul>
		{% for type in types %}
			<li><input type="radio" class="moderaptor_type" name="type" value="{{ type.id }}" />{{ type.title }}</li>
		{% endfor %}
		</ul>
		<input type="submit" name="submit" class="moderaptor_submit" value="{% trans 'report it' %}" />
		</form>
	{% endif %}
	
	{% if report and is_moderator and not report.resolved %}
		<div class="moderaptor_button"><img src="{{ MEDIA_URL }}img/moderaptor_mod.png" class="moderaptor_toggle" alt="{% trans 'moderate' %}" title="{% trans 'moderate' %}" /></div>
		{% include "moderaptor/quickmod.html" %}
	{% endif %}
	</div>
{% endif %}